provider Projects POST
/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/hooks/ @utdk/sentry
/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/hooks/ Register a New Service Hook
Register a new service hook on a project.
Events include:
- event.alert: An alert is generated for an event (via rules).
- event.created: A new event has been processed.
This endpoint requires the 'servicehooks' feature to be enabled for your project.
- organization_id_or_slug path required
- The ID or slug of the organization the client keys belong to.
- string
- project_id_or_slug path required
- The ID or slug of the project the client keys belong to.
- string
Try it
Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import sentry from '@utdk/sentry';
await sentry.registerANewServiceHook()